package com.jhws.business.property.bo;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Table(name = "property_fee_info")
@Entity
public class PropertyFeeInfo {
    @Id
    @Column(name = "id")
    private String id; // id
    @Column(name = "comm_code")
    private String commCode; // 小区编号
    @Column(name = "fee")
    private String fee; // 金额
    @Column(name = "is_pay", columnDefinition = "INT default 0")
    private int isPay; //是否已经缴费 0 未交费 1 已缴费
    @Column(name = "months", columnDefinition = "INT default 0")
    private int months; // 当前缴费月数
    @Column(name = "current_bill_date")
    private String currentBillDate; // 当前账单日期
    @Column(name = "last_bill_date")
    private String lastBillDate; // 上次账单日期

    public PropertyFeeInfo() {
    }

    public PropertyFeeInfo(String fee, int isPay, int months, String currentBillDate, String lastBillDate) {
        this.fee = fee;
        this.isPay = isPay;
        this.months = months;
        this.currentBillDate = currentBillDate;
        this.lastBillDate = lastBillDate;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getCommCode() {
        return commCode;
    }

    public void setCommCode(String commCode) {
        this.commCode = commCode;
    }

    public String getFee() {
        return fee;
    }

    public void setFee(String fee) {
        this.fee = fee;
    }

    public int getIsPay() {
        return isPay;
    }

    public void setIsPay(int isPay) {
        this.isPay = isPay;
    }

    public int getMonths() {
        return months;
    }

    public void setMonths(int months) {
        this.months = months;
    }

    public String getCurrentBillDate() {
        return currentBillDate;
    }

    public void setCurrentBillDate(String currentBillDate) {
        this.currentBillDate = currentBillDate;
    }

    public String getLastBillDate() {
        return lastBillDate;
    }

    public void setLastBillDate(String lastBillDate) {
        this.lastBillDate = lastBillDate;
    }

    @Override
    public String toString() {
        return "PropertyFeeInfo{" +
                "id='" + id + '\'' +
                ", fee='" + fee + '\'' +
                ", isPay=" + isPay +
                ", months='" + months + '\'' +
                ", currentBillDate='" + currentBillDate + '\'' +
                ", lastBillDate='" + lastBillDate + '\'' +
                '}';
    }
}
